package com.example.demo.excel.service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

public class ColumnTitleMap {
    private Map<String, String> columnTitleMap = new HashMap<String, String>();
    private ArrayList<String> titleKeyList = new ArrayList<String>();

    public ColumnTitleMap(String datatype) {
        switch (datatype) {
            case "teacherinfoe":
                initTeacherinfoeColu();
                initTeacherinfoeTitleKeyList();
                break;
            default:
                break;
        }

    }

    private void initTeacherinfoeColu() {
        columnTitleMap.put("schoolName", "*学校名称");
        columnTitleMap.put("name", "*姓名");
        columnTitleMap.put("mobile", "*手机号码");
        columnTitleMap.put("sex", "性别");
        columnTitleMap.put("errorMsg", "错误信息");
    }

    private void initTeacherinfoeTitleKeyList() {
        titleKeyList.add("schoolName");
        titleKeyList.add("name");
        titleKeyList.add("mobile");
        titleKeyList.add("sex");
        titleKeyList.add("errorMsg");
    }

    public Map<String, String> getColumnTitleMap() {
        return columnTitleMap;
    }

    public ArrayList<String> getTitleKeyList() {
        return titleKeyList;
    }
}
